
#include "GUIBase.h"

CGuiBase::CGuiBase()
{
	Visible = true;
	Enable = true;
	Name = "";
	Position.x = 0.0f;
	Position.y = 0.0f;
	Size.x = 0;
	Size.y = 0;
	Cursor = "";
	CheckMouse = CM_FALSE;
	Texture1 = NULL;
	Texture2 = NULL;
	Texture3 = NULL;
	Texture4 = NULL;
	Texture5 = NULL;
}
SParamDraw* CGuiBase::onDraw()
{
	SParamDraw* ParamDraw;
	ParamDraw->Position = GetPosition();
	ParamDraw->Size = GetSize();
	if (GetEnable() == false)
		ParamDraw->Texture = Texture2;
	else
		switch (GetCheckMouse())
		{
			break;case CM_FALSE:		ParamDraw->Texture = Texture1;
			break;case CM_MOUSEDOWN:	ParamDraw->Texture = Texture3;
			break;case CM_MOUSEMOVE:	ParamDraw->Texture = Texture4;
			break;default:				ParamDraw->Texture = Texture1;
		}
	ParamDraw->Text = "";
	ParamDraw->PositionText.x = 0;
	ParamDraw->PositionText.y = 0;
	ParamDraw->SizeText.x = 0;
	ParamDraw->SizeText.y = 0;
	return ParamDraw;
}
//--------------------------------------------------------------------------------
CLabel::CLabel()
{
	Text = "";
}
SParamDraw* CLabel::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CEdit::CEdit()
{
	Text = "";
}
SParamDraw* CEdit::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CMemo::CMemo()
{
	Text = "";
	ScrollBars = false;
}
SParamDraw* CMemo::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CListBox::CListBox()
{
	Items = "";
	ItemIndex = -1;
	ScrollBars = false;
}
SParamDraw* CListBox::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CComboBox::CComboBox()
{
	Items = "";
	ItemIndex = -1;
	ScrollBars = false;
}
SParamDraw* CComboBox::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
SParamDraw* CButton::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CCheckBox::CCheckBox()
{
	Checked = false;
}
SParamDraw* CCheckBox::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CRadioButton::CRadioButton()
{
	Checked = false;
	Group = -1;
}
SParamDraw* CRadioButton::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CProgressBar::CProgressBar()
{
	Min = 0;
	Max = 100;
	Value = 0;
}
SParamDraw* CProgressBar::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
CTrackBar::CTrackBar()
{
	Min = 0;
	Max = 100;
	Value = 0;
}
SParamDraw* CTrackBar::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
SParamDraw* CPanel::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
SParamDraw* CInventar::onDraw()
{
	return NULL;
}
//--------------------------------------------------------------------------------
